<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新建组</title>


<script type="text/javascript">
    function back(){
        window.location.href="groupIndex";
    }

    function check(){
    	var GROUP_NAME=document.getElementById("groupName").value;
    	if (GROUP_NAME==""||GROUP_NAME.length>20){
    		alert ("组名长度错误，请重新输入");
    		return false;
    	}
    	else{
    		return true;
    	}	
    }

</script>



</head>
<body>
<form action="saveGroup"  method="post"  name="form1">
<table>
<tr>
   <td>新建组</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
    <td colspan="2">组名<input type="text" name="AddGroup.GROUP_NAME"  id="groupName" > </td>
</tr>
<tr>
      <td><input type="submit" value="确定"  onClick="return check();"></td>
      <td><input type="button" value="返回" onclick="back();"></td>
</tr>

</table>
</form>
</body>
</html>